/**
 * Created by Administrator on 2017/6/11.
 */
/**
 * 定义news模型实例
 */
var mongoose=require('mongoose');
var newSchema=new mongoose.Schema(
    {
        title:String,
        content:String,
        createTime:{type:Date,default:Date.now}
    }
);
var News=mongoose.model('News',newSchema);